<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<title>我的书屋-${book.bookName }</title>
</head>
<body>
	<div>
		<p><a href="/">返回首页</a></p>
	</div>
	<font color="green">${errorMsg }</font>
	<div class="maininfo">
		${book.mainInfo }
	</div>
	<div class="chapter">
		<ul>
			<c:forEach items="${book.chapters }" var="chap">
				<li>
					<a href="${ctx}/chapter.html?url=${chap.chapUrl }" target="_blank">${chap.chapName }</a>
				</li>
			</c:forEach>
		</ul>
	</div>
</body>
</html>